using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter14
{
	/// <summary>
	/// Example08: Watering a Garden
	/// A water hose 2.50 cm in diameter is used by a gardener 
	/// to fill a 30.0 L bucket. The gardener notes that it 
	/// takes 1.00 min to fill the bucket. A nozzle with an 
	/// opening with an opening of cross sectional area 0.500 cm^2  
	/// is then attached to the hose. The nozzle is held so 
	/// that water is projected horizontally from a point 1.00 m 
	/// above the ground. Over what horizontal distance can the 
	/// water be projected?
	/// x_f = 4.52 m
	/// </summary>
	public class Example08
	{
		public Example08()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			// 30L/1min = A v
			// 1m = 1/2 g t^2
			// s = vt
			double s = 30.0*0.001/60.0/(0.5*0.0001)
				*Math.Sqrt(2.0*1.0/L.Constant.AccelerationOfGravity);
			result+=Convert.ToString(s);
		}
	}
}
